package fasilkom.antz.algo;

import com.golden.gamedev.object.SpriteGroup;

import fasilkom.antz.GameChar;
import fasilkom.antz.Stage;

public class AiManager {

	private SpriteGroup chars;
	
	private Stage scene;
	
	public AiManager(Stage scene, SpriteGroup controlledChars) {
		this.chars = controlledChars;
		this.scene = scene;
	}
	
	public void startAi() {
		// precondition: Stage control for user has been disabled
		// persiapan, misalnya set current playing ke null
		
		GameChar playChar = scene.getSelectedCharacter();
		PathFindingNode path = new PathFindingNode((int) playChar.getX() + 80,
				(int) playChar.getY(), null, 0);
		playChar.setNextWalkPath(path);
	}
	
	public void update(long elapsedTime) {
		
		// if (current char move and attack has been finished or null) {
		// GameChar playChar = calculatePlayingChar();
		// PathFindingNode path = calculateStrategy(playChar);
		// set playing character to playChar
		// } else {
		// update move or attack for character
		// }
		
	}
}
